package com.xx.sg.controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.xx.sg.dbw.entity.VideoDevice;
import com.xx.sg.dbw.service.VideoDeviceService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/videoDev")
@Tag(name = "监控设备", description = "监控设备API")
public class VideoDeviceController {


    @Autowired
    private VideoDeviceService videoDeviceService;

    @GetMapping("/list")
    @Operation(summary = "监控设备列表", description = "监控设备列表")
    public List<VideoDevice> list(){
        LambdaQueryWrapper<VideoDevice> wrapper = new LambdaQueryWrapper<>();
        return videoDeviceService.list(wrapper);
    }

}
